package com.internetCafes.spms.web.sys.model;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Date;


/**
 * 全国行政区划表
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2018-06-05 17:31:32
 */
public class AreaInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
    /**
     * 本表ID
     */
	private Long id;

    /**
     * 类型:1:省;2:市;3:县区
     */
	private Integer type;

    /**
     * 区域名称
     */
	private String name;

    /**
     * 排序号
     */
	private Integer sort;

    /**
     * 父区域
     */
	private Long parentId;

    /**
     * 创建时间
     */
	private Date createTime;



	@JSONField(name = "id")
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	@JSONField(name = "type")
	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}

	@JSONField(name = "name")
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	@JSONField(name = "sort")
	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getSort() {
		return sort;
	}

	@JSONField(name = "parent_id")
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getParentId() {
		return parentId;
	}

	@JSONField(name = "create_time")
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}
}
